<table cellpadding="0" cellspacing="0">
	<tbody>
        <tr>
            <td class="leftside">
           		<?php require_once("menu.php");?>
            </td>
            <td class="rightside">
                <div class="box" style="margin-left:10px; margin-right: 10px; float:left;">
                	<div id='title_menu' class="ui-corner-top">Advertisments Management</div>  
                    <div class="content" style="min-height: 150px;">
					<?php
                    	$sql = 'SELECT `bumq`.* FROM `bumq`';
						$q = $db->select_query($sql);
					?>
                    <form action="#" method="post" id="bmq-form">
                      <table class="list">
                        <thead>
                          <tr align="center">
                            <td>โค้ด</td>
                            <td width="30%">ขนาด</td>                   
                          </tr>
                        </thead>
                        <tbody>
                        <?php
						while($rs = $db->fetch($q)){
						?>      
                          <tr>
                          	<td><textarea cols="100" rows="10" id="code"><?php echo $rs['bumq_code'];?></textarea></td>
                            <td align="center">
								<?php echo $rs['bumq_size'];?>
                                <button id="update_bumq" >Update</button>
                                <div style="color:red;">* ภายในโค้ดจะต้องมีคำว่า <?php echo $rs['bumq_size'];?></div>
                           	</td>
                          </tr>
                        <?php } ?>  
                        </tbody>
                      </table>
					</form>
                    
                  </div>
                </div>            
            </td>
        </tr>
   	</tbody>
</table>